<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	$(document).ready(function(){
		$("#updateReviewBoard").click(function(){
			var title=$("#title").val();
			var content=$("#content").val();
			if(title==""){
				alert("제목을 입력하세요!");
				return false;
			} else if(content==""){
				alert("내용을 입력하세요!");
				return false;
			}
			location.href="updateReviewBoard.do?reviewNo=${requestScope.rvo.reviewNo }&"+
					"consumerId=${requestScope.rvo.consumerId }&productId=${requestScope.rvo.productId }&"+
					"count=${requestScope.rvo.count }&title="+title+"&content="+content;
		})
	})
</script>
</head>
<body>
No. ${requestScope.rvo.reviewNo }
Title. <input type="text" value="${requestScope.rvo.title }" id="title">
<hr>
Writer. ${requestScope.rvo.consumerId }
Date. ${requestScope.rvo.date } 
Count. ${requestScope.rvo.count }
<hr>
<textarea rows="20" cols="50" id="content">${requestScope.rvo.content }</textarea>
<hr>
<input type="button" value="수정하기" id="updateReviewBoard" class="button">
</body>
</html>